export class ClassPagination {
    /**
     * 当前页码
     */
    page: number = 1;
    /**
     * 每页条数
     */
    limit: number = 10;
    /**
     * 数据总条数
     */
    total: number = 0;
}

// 商品列表添加定义规格维度数据类型
export class ClassSpecificationList {
    title: string='';
    values: string[] = [];
    gmtCreate: number = 0;
    gmtUpdate: number = 0;
    inputSkuTagVisible: boolean = false;
    inputSkuTagValue: string = '';
}

// 商品列表添加定义商品Sku详情数据类型
export class ClassSkuList {
    price: number = 0;
    vipPrice: number = 0;
    originalPrice: number = 0;
    stock: number = 0;
    barCode: string = '';
    weight: number = 0;
    img: string = '';
    title: string= '';
    specification: string= '';
    inputVisible:boolean=false;
}
// 商品列表添加定义商品参数数据类型
export class ClassAttributeList { 
    attribute: string = '';
     value: string=''
 }

// 商品列表添加定义数据类型
export class ClassAddCommodityListData {
    title: string= '';
    price: string= '';
    originalPrice: string= '';
    vipPrice: string= '';
    freightTemplateId: number|string = '';
    status: number= 1;
    imgList: string[]= [];
    img: string = '';
    unit: string = '';
    categoryId: number = 0;
    description: string = '';
    detail: string = '';
    specificationList:ClassSpecificationList[] = [];
    attributeList:ClassAttributeList[] = []; 
    skuList:ClassSkuList[] =[]; 
}